<?php

namespace Blog\PostBundle\Entity;

/**
 * @orm:Entity
 * @orm:Table(name="difficulte")
 */
class Difficulte {

    /**
     *
     * @orm:ID
     * @orm:Column(type="integer")
     * @orm:GeneratedValue(strategy="AUTO")
     */
    protected  $id_difficulte;

    /**
     *
     * @orm:Column(type="string", length="100")
     */
    protected $nom;

    /**
     * @orm:OneToMany(targetEntity="Post", mappedBy="difficulte")
     */
    protected $posts;

    function __construct(){
        $this->posts = new \Doctrine\Common\Collections\ArrayCollection();
    }

    public function getNom() {
        return $this->nom;
    }

    public function setNom($nom) {
        $this->nom = $nom;
    }

    public function getId_difficulte() {
        return $this->id_difficulte;
    }
    public function getPosts() {
        return $this->posts;
    }

    public function setPosts($posts) {
        $this->posts = $posts;
    }




}
?>
